/*
 * @Author: Turump 
 * @Date: 2021-03-26 11:02:22 
 * @Last Modified by: Turump
 * @Last Modified time: 2021-03-26 11:23:49
 */

export default class SingletonBase{
    static getInstance<T extends {}>(this: new () => T): T {
        if(!(<any>this).instance){
            (<any>this).instance = new this();
        }
        return (<any>this).instance;
    }
}

